import { Column, Entity } from "typeorm";
import { BaseEntity } from "../../base/entity/base";
import { TransportType } from "./type";

@Entity('transport_capacity', { comment: '运力、主要记录可分配的车辆、司机、导游信息' })
export class CapacityEntity extends BaseEntity {
    @Column({ comment: '类型', type: 'enum', enum: TransportType, nullable: false })
    type: TransportType;

    @Column({ comment: '团队ID', nullable: true })
    teamId?: number
}